package com.example.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.backend.entity.Function;
import com.example.backend.entity.FunctionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author Jcy
 * @Date 2022/5/6
 */
@Mapper
public interface
FunctionMapper  extends BaseMapper<Function> {
    @Select("SELECT tb_function.function_id AS functionID,tb_function.function_name AS functionName,tb_function.function_status AS functionStatus from tb_function")
    List<FunctionVO> getFunction(Page<FunctionVO> page);
}
